package com.yc.cloud.model.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author 杨智杰
 * @since 2021/8/23 15:56
 */
@Data
@Accessors(chain = true)
@ApiModel("新增部门的数据模型")
public class SaveDept {

    @ApiModelProperty(value = "上级部门Id")
    private Long pid;

    @NotBlank
    @Length(max = 64)
    @ApiModelProperty(value = "部门名", required = true)
    private String name;

    @NotBlank
    @Length(max = 32)
    @ApiModelProperty(value = "联系人", required = true)
    private String linkMan;

    @NotBlank
    @Length(max = 32)
    @ApiModelProperty(value = "联系电话", required = true)
    private String linkPhone;

    @ApiModelProperty(value = "部门等级")
    private Integer level;

    @ApiModelProperty(value = "数据范围(部门Id)")
    private List<Long> dataScopeList;

    @ApiModelProperty(value = "当前状态")
    private Integer status;

    @ApiModelProperty(value = "默认部门")
    private Boolean isDefault;

}
